<?
ob_start();
session_start();
include("../conf/config.php");
include("../conf/database.php");
include("../conf/tools.php");

$curTime=getIndianDateTime();
$link_id=$_GET["link_id"];
$mode=$_GET["mode"]; 

foreach($_POST as $key => $value) { $arr_data[$key]=$value;}
foreach($arr_data as $key => $value) { $arr_data[$key]=addslashes($value); }

$arr_data["rec_status"]=1;


if($link_id>0){

update_qry("bkitc_links",$arr_data,"link_id=".$link_id);


}
else{

	$link_id=insert_qry("bkitc_links",$arr_data);
	

}



header("location:edit_weblink.php?mode=edit&weblink_id=".$link_id);
?>



